b=0 #all
for i in range(101):
    b += i
print(b)

b=0 #偶数
for i in range(0,101,2):
    b += i
print(b)
a=0 #奇数
for i in range(1,101,2):
    a += i
print(a)

print(b-a)  #第五题